package com.lqr.wechat.activity;

import android.view.MenuItem;

import androidx.appcompat.widget.Toolbar;

import com.lqr.wechat.R;
import com.lqr.wechat.databinding.ActivityNewMsgNotifySetBinding;

/**
 * @创建者 CSDN_LQR
 * @描述 新消息提醒
 */
public class NewMsgNotifySetActivity extends BaseActivity {
    private ActivityNewMsgNotifySetBinding binding ;
    @Override
    protected int layoutId() {
        return R.layout.activity_new_msg_notify_set;
    }

    @Override
    public void initView() {
        binding = getBind() ;
        initToolbar();
    }

    @Override
    public boolean onOptionsItemSelected(MenuItem item) {
        switch (item.getItemId()) {
            case android.R.id.home:
                finish();
                break;
        }
        return super.onOptionsItemSelected(item);
    }

    private void initToolbar() {
        setSupportActionBar(binding.lyToolbar.toolbar);
        getSupportActionBar().setTitle("新消息提醒");
        getSupportActionBar().setDisplayHomeAsUpEnabled(true);
        binding.lyToolbar.toolbar.setNavigationIcon(R.mipmap.ic_back);
    }
}
